﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using IHISCETeim.BLL;
using System.Text;


namespace IHISCETeim.Web.AgentSys.SvrMgr
{
    public partial class AgentQltyPartsGetInWuPaiBiLi : PageBase
    {
        protected override Permission[] PowerKey
        {
            get
            {
                return new Permission[] { Permission.查看 };
            }
        }
        protected override string DWZRef
        {
            get
            {
                return "AgentQltyPartsNeedStockList";
            }
        }

        #region 属性 (查询条件)

        protected string CreateDateFrom
        {
            get
            {
                return GetRequestValue<string>("CreateDateFrom", DateTime.Now.ToString("yyyy-MM-01"));


            }
        }

        protected string CreateDateTo
        {
            get
            {
                return GetRequestValue<string>("CreateDateTo", Convert.ToDateTime(CreateDateFrom).AddMonths(1).AddDays(-1).ToString("yyyy-MM-dd"));

            }
        }

        #endregion

        protected void Page_Load(object sender, EventArgs e)
        {
            DataBind();
        }
        protected void DataBind()
        {
            DataTable DTC = AgentQltyController.GetWuPaiBiLi(CreateDateFrom, CreateDateTo);
            this.rpMenu.DataSource = DTC;
            this.rpMenu.DataBind();
            // SUMDT = DTC[1];
        }
    }
}